package com.shelpe.services.simbasync.service.simbaproxy;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="${simbaproxy.serviceID}", url="${simbaproxy.url}")
@RequestMapping(value = "/simba")
public interface AdgroupsProxy {
	
	/**
	 * 推广计划下的推广组
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.adgroupsbycampaignid.get")
	public String getAdgroupsByCampaignId(@RequestParam("nick")String nick, @RequestParam("campaign_id")long campaignId, 
			@RequestParam("page_size")int pageSize, @RequestParam("page_no")int pageNo);
	
	/**
	 * 
	 * 定向投放地址
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.nonsearch.adgroupplaces.get")
	public String getAdgroupPlaces(@RequestParam("nick")String nick, @RequestParam("campaign_id")long campaignId, @RequestParam("adgroup_id")String adgroupId);
	
	
	/***
	 * 
	 * 推广组效果报表数据对象
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rpt.adgroupeffect.get")
	public String getRptAdgroupEffect(@RequestParam("subway_token")String subway_token, @RequestParam("nick")String nick, @RequestParam("campaign_id")long campaignId, @RequestParam("adgroup_id")long adgroupId, 
			@RequestParam("source")String source, @RequestParam("search_type")String searchType, @RequestParam("start_time")String startTime, @RequestParam("end_time") String endTime, 
			@RequestParam("page_size")int pageSize, @RequestParam("page_no")int pageNo);
	
	

	/***
	 * 
	 * 推广组基础报表数据对象
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rpt.adgroupbase.get")
	public String getRptAdgroupBase(@RequestParam("subway_token")String subway_token, @RequestParam("nick")String nick, @RequestParam("campaign_id")long campaignId, @RequestParam("adgroup_id")long adgroupId, 
			@RequestParam("source")String source, @RequestParam("search_type")String searchType, @RequestParam("start_time")String startTime, @RequestParam("end_time")String endTime, 
			@RequestParam("page_size")int pageSize, @RequestParam("page_no")int pageNo);
	
	
	
}